<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addData.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	function backToIndex(){
		window.location.href="index.jsp";
	}
</script>
  </head>
  
  <body>
    <form action="addData" id="addData" name="addData">
    	<table width="200" border="0" align="center">
   		 <tr>
		    <td width="30%">标题</td>
		    <td  width="70%"><input type="text" name="title" value="" /></td>
		  </tr>
		  <tr>
		    <td>位置</td>
		    <td><input type="text" name="data_address" value="" /></td>
		  </tr>
		  <tr>
		    <td>类型</td>
		    <td>
		    	<select id="data_type" name="data_type">
		    		<option value="-1">全部</option>
		    		<option value="0">地铁</option>
		    		<option value="1">银行</option>
		    		<option value="2">大厦</option>
		    	</select>		    
		    </td>
		  </tr>
		   <tr>
		    <td>上传图片</td>
		    <td><input type="text" name="pic" value="" /></td>
		  </tr>
		   <tr>
		    <td>交通信息</td>
		    <td><input type="text" name="traffic" value="" /></td>
		  </tr>
		   <tr>
		    <td>内容简介</td>
		    <td><textarea rows="5" name="content" value="" ></textarea></td>
		  </tr>
		   <tr>
		    <td><input type="submit" name="search" value="提交" /></td>
		    <td><input type="button" name="index" value="回到首页" onClick="backToIndex();" />
	         </td>
		  </tr>
		</table>
		
		
    </form>
  </body>
</html>
